#pragma once
#include "Main.h"
#include "Image.h"


struct SpriteSheet{ //Animated Sprites!
Sprite *h_Sprite;        //4
BYTE *MaxFrames;         //4
unsigned short FrameX;   //2
unsigned short FrameY;   //2
BYTE MaxStrips;          //1
BYTE Frame;              //1
BYTE Strip;              //1
char pad;				 //1

void AdvanceFrame(){Frame ++; if(Frame >=MaxFrames[Strip]){Frame =0;}}
void SetStrip(BYTE stp){Frame =0; Strip = stp; if(Strip >=MaxStrips || Strip <0){Strip =0;}}
SpriteSheet(Sprite* s, unsigned short fx,unsigned short fy,BYTE ms, BYTE *mf){
	h_Sprite =s;FrameX = fx; FrameY=fy;MaxStrips=ms;for(int i=0; i<MaxStrips;i++){MaxFrames[i]= mf[i];}
}


};